import Router from "vue-router"
import Vue from "vue"
Vue.use(Router)

const createRouter=()=>new Router({
    mode:"history",
    routes:[
        {path:"",component:()=>import("@/components/Home.vue")},
        {path:"/detail",component:()=>import("@/components/Detail.vue")}
    ]
})

export  {createRouter};
